import $http from './httpXin.js';


export function GetStoreGoodsDetailsApi(params) { // 商品详情
  let url = `/backend/api/v1/store/goods/${params}`
  return $http.get(url, params,1)
}


export function siteMobileLoginApi(params) { // 手机号登录
  let url = '/api/site/mobileLogin'
  return $http.post(url, params,1)
}

export function siteSendApi(params) { // 手机号登录
  let url = '/api/sms/send'
  return $http.post(url, params,1)
}


export function GetOrderDetailApi(params) { //核销订单
  let url = `/api/order/v1/detail`
  return $http.get(url, params,1)
}

export function GetMemberInfoApi(params) { //获取登录信息
  let url = `/api/member/info`
  return $http.get(url, params,1)
}


export function orderVerifyApi(params) { //核销订单
  let url = `/api/order/v1/verify`
  return $http.post(url, params,1)
}


export function GetStoreMemberListApi(params) { //获取门店列表
  let url = `/api/store/member/list`
  return $http.get(url, params,1)
}




export function GetStoreMemberMemberlistApi(params) { //成员列表
  let url = `/api/store/member/member_list`
  return $http.get(url, params,1)
}

export function memberEDitMemberApi(params) { //修改添加成员
  let url = `/api/store/member/editMember`
  return $http.post(url, params,1)
}

export function memberDeleteApi(params) { //删除成员
  let url = `/api/store/member/delete`
  return $http.post(url, params,1)
}


export function GetMemberViewApi(params) { //获取商家详情
  let url = `/api/store/member/view`
  return $http.get(url, params,1)
}
export function GetMemberDataApi(params) { //获取商家详情数据
  let url = `/api/store/member/data`
  return $http.get(url, params,1)
}

export function GetOrderStoreListApi(params) { //获取订单列表
  let url = `/api/order/v1/store/list`
  return $http.get(url, params,1)
}

export function GetStorewalletinfoApi(params) { //获取钱包信息
  let url = `/api/store/wallet/info`
  return $http.get(url, params,1)
}

export function GetBankCardInfoApi(params) { //获取银行卡信息
  let url = `/api/bank/card/info`
  return $http.get(url, params,1)
}


export function storebankcardsendApi(params) { //绑定银行卡验证码
  let url = `/api/store/bank/card/bind/sms/send`
  return $http.post(url, params,1)
}

export function storebankcardbindApi(params) { //绑定银行卡
  let url = `/api/store/bank/card/bind`
  return $http.post(url, params,1)
}


export function GetWalletCreditsApi(params) { //获取钱包变动记录
  let url = `/api/wallet/credits/log`
  return $http.get(url, params,1)
}

export function storeWalletWithdrawApi(params) { //提现
  let url = `/api/wallet/withdraw`
  return $http.post(url, params,1)
}

